/**
* 版权声明：厦门睿商网络科技有限公司 版权所有 违者必究
* 日    期：2020-06-17
*/
package com.rzico.order.entity;

import com.rzico.basics.entity.Promotion;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * <pre>
 *   订单促销数据库对象
 * </pre>
 * @author Rzico Boot
 * @version 1.0
 */
@Data
@JsonIgnoreProperties(value = {"handler"})
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "wx_order_promotion")
public class OrderPromotion{
    @Id
    @ApiModelProperty(value = "" )
    protected Long id;

    @ApiModelProperty(value = "创建日期" )
    protected java.util.Date createDate;

    @ApiModelProperty(value = "修改日期" )
    protected java.util.Date modifyDate;

    @ApiModelProperty(value = "促销说明" )
    protected String title;

    @ApiModelProperty(value = "促销方式 {1:消费后送,3.满减,4.满折,5.满赠,6.满包邮,7.买送,8.秒杀,9.第二件半价,10.新人价}" )
    protected Integer type;

    @ApiModelProperty(value = "订单" )
    protected Long orderId;

    @ApiModelProperty(value = "促销" )
    protected Long promotionId;

    @ApiModelProperty(value = "活动数量" )
    protected BigDecimal quantity;

    @JsonIgnore
    protected Promotion promotion = null;

}
